<#ibiztemplate>
TARGET=PSAPPVIEW
</#ibiztemplate>
<#if item.getPSApplication()??>
<#list item.getPSApplication().getAllPSAppFuncs() as func >
<#if func.getPSAppView()??>
<#if func.getPSAppView().getId() == item.getId()>
# ${func.getName()}

${item.getTitle()}(${item.getCodeName()})

{% plantuml %}

digraph ${item.getCodeName()} {

label="${func.getName()}";    

#rankdir=LR;

start [shape=circle,size="1,1",label="",style=filled, fillcolor=black]
end [shape=doublecircle,label=""]

own [shape=none, margin=0,size="6,6", label=<
<TABLE WIDTH="150" BORDER="1" CELLBORDER="1" >
<TR>
<TD WIDTH="115" BORDER="0" COLSPAN="3"></TD><TD WIDTH="35" BORDER="0">V</TD>
</TR>
<TR>
<TD BORDER="0" COLSPAN="4" CELLPADDING="10">${func.getName()}<BR/><BR/></TD>
</TR>
</TABLE>
>];

part [shape=none, margin=0, label=<
<TABLE WIDTH="150" BORDER="1" CELLBORDER="1" >
<TR>
<TD WIDTH="115" BORDER="0" COLSPAN="3"></TD><TD WIDTH="35" BORDER="0">P</TD> 
</TR>
<TR>
<TD BORDER="0" COLSPAN="4" CELLPADDING="10">
<#if item.getPSAppViewUIActions()??>
<#list item.getPSAppViewUIActions() as uiaction>
${uiaction.getCaption()}<BR/>
</#list>
</#if>
<BR/></TD>
</TR>
</TABLE>
>];

<#if item.getPSAppViewUIActions()??>
<#list item.getPSAppViewUIActions() as uiaction>

<#if uiaction.getPSUIAction().getPFLogicCodeType()?index_of("SYS#")==-1>
${uiaction.getPSUIAction().getCodeName()} [shape=none, margin=0, label=<
<TABLE WIDTH="150" BORDER="1" CELLBORDER="1" >
<TR>
<TD WIDTH="115" BORDER="0" COLSPAN="3"></TD><TD WIDTH="35" BORDER="0"><#if uiaction.getPSUIAction().getPFLogicCodeType()=='BACKEND' >L<#else>V</#if></TD>
</TR>
<TR>
<TD BORDER="0" COLSPAN="4" CELLPADDING="10">${uiaction.getPSUIAction().getCaption()}<BR/><BR/></TD>
</TR>
</TABLE>
>];

<#else>
${uiaction.getPSUIAction().getCodeName()} [shape=none, margin=0, label=<
<TABLE WIDTH="150" BORDER="1" CELLBORDER="1" >
<TR>
<TD WIDTH="115" BORDER="0" COLSPAN="3"></TD><TD WIDTH="35" BORDER="0"><#if uiaction.getPSUIAction().getPFLogicCodeType()=='BACKEND' >L<#else>V</#if></TD>
</TR>
<TR>
<TD BORDER="0" COLSPAN="4" CELLPADDING="10">${uiaction.getPSUIAction().getCaption()}<BR/><BR/></TD>
</TR>
</TABLE>
>];

</#if>

</#list>
</#if>

start -> own ;
own -> part [style=dashed,arrowhead=diamond,label="<包含>"] ;

<#if item.getPSAppViewUIActions()??>
<#list item.getPSAppViewUIActions() as uiaction>

<#if uiaction.getPSUIAction().getPFLogicCodeType()?index_of("SYS#")==-1>
part -> ${uiaction.getPSUIAction().getCodeName()} [style=dashed,label=<${uiaction.getPSUIAction().getCaption()}<#if uiaction.getPSUIAction().getPFLogicCodeType()=='FRONT' ><BR/>(迁移/popup)</#if>>];

${uiaction.getPSUIAction().getCodeName()} -> end ;

<#else>
part -> ${uiaction.getPSUIAction().getCodeName()} [style=dashed,label=<${uiaction.getPSUIAction().getCaption()}<#if uiaction.getPSUIAction().getPFLogicCodeType()=='FRONT' ><BR/>(迁移/popup)</#if>>];

${uiaction.getPSUIAction().getCodeName()} -> end ;

</#if>

</#list>
</#if>

}

{% endplantuml %}

</#if>
</#if>
</#list>
</#if>